//
//  BMHAlertView.h
//  BMHVideoMain
//
//  Created by 陈宪栋 on 2017/3/22.
//  Copyright © 2017年 Baomihua. All rights reserved.
//

#import <UIKit/UIKit.h>

@class BMHAlertView;
@protocol BMHAlertViewDelegate <NSObject>
@optional
- (void)alertViewWillClose:(BMHAlertView *)alertView;
- (void)alertViewDidClose:(BMHAlertView *)alertView;
@end

typedef NS_ENUM(NSInteger, BMHAlertViewType) {
    BMHAlertViewTypeFade,
    BMHAlertViewTypePopover
};

@interface BMHAlertView : UIView
@property (nonatomic, weak) id<BMHAlertViewDelegate> delegate;
@property (nonatomic, strong) UIView *contentView; //所有控件必须加载到此View上

- (instancetype)initWithOverType:(BMHAlertViewType)type touchShadeClose:(BOOL)touchShadeClose;
- (void)close;
@end
